package dongshi.daddy.controller;

import dongshi.daddy.pojo.JpaUser;
import dongshi.daddy.service.JpaUserService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class JpaUserController {
    @Resource
    private JpaUserService jpaUserService;

    @PostMapping("/addUser")
    public JpaUser addUser(@RequestBody JpaUser user){
        return jpaUserService.insertUser(user);
    }

}
